﻿using SQLite;

namespace ui_test.config;

[Table("key_record")]
public class KeyRecord
{
    [PrimaryKey, AutoIncrement, Column("id")]
    public int Id { get; set; }

    [Column("name")] public string Name { get; set; }
    [Column("times")] public int Times { get; set; } = 0;

    [Column("key_type")] public string KeyType { get; set; } = KeyTypeEnum.Keyboard.ToString();
    [Column("update_time")] public string UpdateTime { get; set; }

    public enum KeyTypeEnum
    {
        Keyboard,
        Mouse,
        MouseWheel
    }
}